export default function emptyObj(Obj = {}) {
  if (Obj instanceof Array) {
    Obj.length = 0;
  } else if (Obj instanceof Object) {
    for (const o of Object.keys(Obj)) {
      Obj[o] = emptyObj(Obj[o]);
    }
  } else if (Obj) {
    Obj = null;
  }
  return Obj;
}
